package ro.isdc.navigator.factory;

import java.io.Serializable;
import java.util.List;

/**
 * Search Context
 * 
 * @author Andrei Chirila / ISDC! Romania
 * @version 1.0
 * @date Jul 1, 2009
 */
public class SearchContext implements Serializable {

	/**
	 * Generated Serial Version UID
	 */
	private static final long serialVersionUID = -489190038877979436L;
	
	/**
	 * The default search limit is unlimited = 0.
	 */
	private static final int DEFAULT_SEARCH_LIMIT = 0;
	
	/**
	 * The number of results that a page can have.
	 */
	private int pageSize;
		
	/**
	 * The list of arguments
	 */
	private List<Object> args;
	
	/**
	 * The search limit.
	 */
	private int searchLimit = DEFAULT_SEARCH_LIMIT;
	
	/**
	 * @return the pageSize
	 */
	public int getPageSize() {
		return pageSize;
	}

	/**
	 * @param pageSize the pageSize to set
	 */
	public void setPageSize(final int pageSize) {
		this.pageSize = pageSize;
	}

  /**
   * @return the args
   */
  public List<Object> getArgs() {
    return args;
  }

  /**
   * @param args the args to set
   */
  public void setArgs(final List<Object> args) {
    this.args = args;
  }

  /**
	 * @return the searchLimit
	 */
	public int getSearchLimit() {
		return searchLimit;
	}

	/**
	 * @param searchLimit the searchLimit to set
	 */
	public void setSearchLimit(final int searchLimit) {
		this.searchLimit = searchLimit;
	}
	
}
